// =====================================================
// member inner class test
// make : pwg
// date : 2003
// =====================================================
package h_innerClass;

import java.awt.*;
import java.awt.event.*;

class innerClass4 extends Frame
{
	Button b=new Button("exit");
	myActionListener myAction = new myActionListener();
	
	public innerClass4()
	{
		setLayout(null);
		setSize(400,400);
		b.setBounds(100,100,100,100);
		b.addActionListener(myAction);
		add(b);
	}
	
	public static void main(String args[])
	{
		innerClass4 ic4=new innerClass4();
		ic4.setVisible(true);
	}
	
	// method type inner class
	class myActionListener implements ActionListener
	{
		public void actionPerformed(ActionEvent ev)
		{
			System.exit(0);
		}
	}
}